/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2023-08-17
 * Time: 22:02
 */
public class test11 {
    public static void main(String[] args) {
/*        String s1="hello";// 使用常量串构造
        System.out.println(s1);

        String s2=new String("hell01");// 直接newString对象
        System.out.println(s2);

        char[] array1={'h','e','l','l','o','2'};// 使用字符数组进行构造
        String s3=new String(array1);
        System.out.println(s3);*/

        String s1=new String("hello1");
    }
}
